package cn.pengpeng.domain;

/**
 * 这一需要注意的是数据库里面存储的是userid，这里面直接转换成user对象的，
 * 需要注意OrderMapper.xml里面的写法
 */
public class Order {
    private int id;
    private String orderNo;
    private User user;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderNo='" + orderNo + '\'' +
                ", user=" + user +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
